<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of DBCon
 *
 * @author Kenny
 */
class DBCon {
    public static function connectDB() {
        $link = new mysqli("localhost", "root", "", "railway");
        if ($link->connect_errno) {
            echo 'Error in connecting';
        }
        return $link;
    }

}

?>
